package com.silvtar.sync.ui;

import java.awt.Dimension;

import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import com.silvtar.sync.controller.SilverySyncInit;

public class ServicePanel extends JPanel {

    SilverySyncInit ssInit;
    MainServicePanel mainServicePanel;
    TransportServicePanel transportServicePanel;
    
    /**
     * Create the panel.
     */
    public ServicePanel(SilverySyncInit ssInit) {
        this.ssInit = ssInit;
        setPreferredSize(new Dimension(320, 350));
        JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
        tabbedPane.setPreferredSize(new Dimension(300, 320));
        mainServicePanel = new MainServicePanel(ssInit);
        transportServicePanel = new TransportServicePanel(ssInit);
        
        tabbedPane.addTab("主服务", mainServicePanel);
        tabbedPane.addTab("传输服务", transportServicePanel);
        add(tabbedPane);
    }

}
